﻿<navigation:Page 
  x:Class="Coproject.Views.AdminView" 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
  xmlns:tk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
  xmlns:bi="clr-namespace:CoProjectDF.Controls"
  xmlns:dts="clr-namespace:CoProjectDF.DesignTimeSupport"
  mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"  
  Style="{StaticResource PageStyle}"
  >
    <d:DesignProperties.DataContext>
        <Binding Path="AdminViewModel" Source="{StaticResource ViewModelLocator}"/>
    </d:DesignProperties.DataContext>
    
    <Grid x:Name="LayoutRoot">
            <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}" 
                  VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                  VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible">
                <StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}" 
                        Margin="10">
                    <tk:DataGrid x:Name="Users1" ItemsSource="{Binding Users}"  AutoGenerateColumns="True"
                             IsReadOnly="True">
                    </tk:DataGrid>
                </StackPanel>
            </ScrollViewer>
        </Grid>

</navigation:Page>